|
![](/i/fill.gif) |
Thorsten Froehlich wrote:
> In article <40bebe43$1@news.povray.org> , Dan P <dan### [at] yahoo com>
> wrote:
>
>>Those warnings bug me, so I'm going to fix them. As a rule, I use
>>floor() and cast it to an int when I'm going from a double to an
>>integer. I think that is the default behavior anyway so I'm going to add
>>the necessary code to make it compile cleanly (at least, on this platform).
>
>
> Argh! Don't do something like that, it is plain wrong! If you compiler
> issues nonsensical warnings, the right thing to do is to disable them, not
> to destroy your source code!
>
> Thorsten
Warnings warn you of when your code may behave differently on other OS's
as well. I'm not saying that is true in this case -- it makes sense not
to call another function there if we don't have to -- but I didn't think
it was "nonsensical".
Oh, and if your code was so damn good, TF, it wouldn't have crashed
using a straight-up clean compile on this OS so step-off.
--
Respectfully, "Leave it to the coward to make a religion
Dan P of his cowardice by preaching humility."
- George Bernard Shaw
http://<broken link>
Post a reply to this message
|
![](/i/fill.gif) |